package com.jcl.cloud.services.login.task;

import com.jcl.cloud.services.login.model.LoginModel;

public class LoginTaskHandlerWrap implements Runnable{


    private LoginTaskHandler loginTaskHandler;
    private LoginModel loginModel;


    @Override
    public void run() {
        try {
            this.loginTaskHandler.execute(loginModel);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    public LoginTaskHandlerWrap(LoginTaskHandler loginTaskHandler, LoginModel loginModel){
        this.loginTaskHandler = loginTaskHandler;
        this.loginModel = loginModel;
    }
}
